package com.gradle.service.impl;

import java.math.BigDecimal;

import org.springframework.stereotype.Service;

import com.gradle.factory.StratrgyFactory;
import com.gradle.service.PayService;

@Service
public class PayServiceImpl implements PayService{

	@Override
	public BigDecimal getPrice(int channelId, int goodsId) {
		return StratrgyFactory.getInstance().create(channelId).getPrice(channelId, goodsId);
	}

}
